const express = require('express');
const sysuser = require('./../controller/sysuser.server.controller.js');

module.exports = (app) => {
    const router = express.Router();
    
    router.route('/sysuser/login')
    .post(sysuser.login);

    router.route('/sysuser/isLogin')
    .get(sysuser.isLogin);

    router.route('/sysuser/logout')
    .get(sysuser.logout);
    
    router.route('/sysuser/add')
    .post(sysuser.addSysUser);
    
    app.use('/api', router);
};